package com.androwit.engine.mapping.auto;

import com.androwit.engine.mapping.MappingFieldsDefiner;

/**
 * permits caching of the Automatic {@link ClassReflexionFieldsDefiner}
 * instances to avoid constructing them each time
 * 
 * @author Zied Hamdi http://1vu.fr
 * 
 */
public class ClassReflexionFieldsDefinerCache extends
		AbstractMappingFieldsDefinerCache<Object, String, Object, Class<?>> {

	@SuppressWarnings("unchecked")
	@Override
	protected MappingFieldsDefiner<Object, String, Object> loadMappingFieldsDefiner(
			Class<?> clazz) {
		return new ClassReflexionFieldsDefiner<Class<?>>((Class<Class<?>>) clazz);
	}

}
